<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">订单清单</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <label style="margin-bottom: 0px;">开始日期</label>
      <input type="date" class="form-control" placeholder="开始日期,如2015-01-01" ng-model="searchMap.orderDateStart" maxlength="10">
    </div>
    <div class="form-group">
      <label style="margin-bottom: 0px;">结束日期</label>
      <input type="date" class="form-control" placeholder="结束日期,如2015-01-01" ng-model="searchMap.orderDateEnd" maxlength="10">
    </div>
    <button type="submit" class="btn btn-default">查询</button>
    <button type="button" class="btn btn-default" ng-click="orderListCsv()">导出CSV</button>
  </form>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="35">ID</th>
        <th width="55">订单ID</th>
        <th width="50">状态</th>
        <th width="50">订单有效性</th>
        <th width="180">产品名</th>
        <th width="35">直销</th>
        <th width="45">FAID</th>
        <th width="110">预约时间</th>
        <th width="55">金额(W)</th>
        <th width="80">佣金费率(%)</th>
        <th width="45">佣金</th>
        <th width="90">产品成立时间</th>
        <th width="90">返佣时间</th>
        <th width="120">用户是否通过认证</th>
        <th width="55">产品部</th>
        <th>财富管理部</th>
        <th width="35">财务</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="item in list">
        <td>{{item.orderId}}</td>
        <td>{{item.orderCode}}</td>
        <td>{{item.orderStatus | orderStatusRender}}</td>
        <td>{{item.oDefriendStatus | oDefriendStatusRender}}</td>
        <td>{{item.pName}}</td>
        <td></td>
        <td>{{item.uId}}</td>
        <td>{{item.orderDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{item.orderAmount / 10000}}</td>
        <td>{{item.rebateRate || 0}}%</td>
        <td>{{item.rebateAmount}}</td>
        <td>{{item.establishmentTime | date:'yyyy-MM-dd'}}</td>
        <td>{{item.rebateDate | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td class="cert-status-{{item.uRole}}">{{"01" | faRoleStatusRender:item.uRole}}</td>
        <td>{{item.pUserName}}</td>
        <td></td>
        <td></td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>
